home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
asmmacros
/
am_02
/
doclicmd.i
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
43 lines
NOLIST
DoCLICmd MACRO ; 14 Jan 88
*------------------------------; Start of DoCLICmd macro.
CLR.L D2 ; Make D2 indicate "execute from command
; string only".
NOLIST
IFEQ NARG-2 ; If the output file handle is specified, then
LIST
; Make D3 indicate the output file handle.
NOLIST
IFEQ ReEntrant-1
LIST
MOVE.L \2(A5),D3
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L \2,D3
NOLIST
ENDC
ENDC
IFEQ NARG-1 ; If no output file handle is specified, then
LIST
CLR.L D3 ; Clear D3 so that output will go to the
; current window.
NOLIST
ENDC
LIST
; Make D1 point to the command buffer.
MOVE.L #\1,D1
NOLIST
IFEQ ReEntrant-1
LIST
ADD.L A5,D1
NOLIST
ENDC
LIST
CallLib Execute,dos ; Call Execute to do the CLI command.
TST.L D0 ; Make the zero flag indicate failure.
*------------------------------; End of DoCLICmd macro.
ENDM
LIST